<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main"/>
    <title>Prowadzący ${fieldValue(bean: teacher, field: 'imie')} ${fieldValue(bean: teacher, field: 'nazwisko')}</title>
</head>
<body>
<div class="nav2">
    <span class="menuButton"><g:link class="list" action="list">Lista Prowadzących</g:link></span>
    <span class="menuButton"><g:link class="create" action="create">Dodaj Nowego Prowadzącego</g:link></span>
</div>
<div class="body">
    <h1>Prowadzący ${fieldValue(bean: teacher, field: 'imie')} ${fieldValue(bean: teacher, field: 'nazwisko')}</h1>
    <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
    </g:if>
    <div class="dialog">
        <table class="main">
            <tbody>
                <tr>
                    <td>
                        <table>
                            <tbody>

                                <tr class="prop">
                                    <td>
                                        <h2>Dane główne:</h2>
                                    </td>
                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Id:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'id')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Imie:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'imie')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Nazwisko:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'nazwisko')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Tytul Naukowy:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'tytulNaukowy')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Email:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'email')}</td>

                                </tr>

                            </tbody>
                        </table>
                        <br>
                        <table>
                            <tbody>

                                <tr class="prop">
                                    <td>
                                        <h2>Dane konta:</h2>
                                    </td>
                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Username:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'username')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">User Real Name:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'userRealName')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Passwd:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'passwd')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Pass:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'pass')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Enabled:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'enabled')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Authorities:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'authorities')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Description:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'description')}</td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Email Show:</td>

                                    <td valign="top" class="value">${fieldValue(bean: teacher, field: 'emailShow')}</td>

                                </tr>

                            </tbody>
                        </table>
                    </td>
                    <td class="form">
                        <table>
                            <tbody>

                                <tr class="prop">
                                    <td>
                                        <h2>Wystaw/Wydrukuj Dokumenty:</h2>
                                    </td>
                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Umowa o Dzieło:&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</td>

                                    <td valign="top" class="value">
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'pdf.png')}" style="border: 0px;" alt=""></a>
                                        &nbsp
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'printer.png')}" style="border: 0px;" alt=""></a>
                                    </td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Rachunek:</td>

                                    <td valign="top" class="value">
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'pdf.png')}" style="border: 0px;" alt=""></a>
                                        &nbsp
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'printer.png')}" style="border: 0px;" alt=""></a>
                                    </td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Oświadczenie:</td>

                                    <td valign="top" class="value">
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'pdf.png')}" style="border: 0px;" alt=""></a>
                                        &nbsp
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'printer.png')}" style="border: 0px;" alt=""></a>
                                    </td>

                                </tr>

                                <tr class="prop">
                                    <td valign="top" class="name">Prawa Autorskie:</td>

                                    <td valign="top" class="value">
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'pdf.png')}" style="border: 0px;" alt=""></a>
                                        &nbsp
                                        <a href="${createLinkTo(dir: 'file', file: 'pdf.pdf')}"><img src="${createLinkTo(dir: 'images/skin', file: 'printer.png')}" style="border: 0px;" alt=""></a>
                                    </td>

                                </tr>

                            </tbody>
                        </table>
                    </td>
                </tr>
            </tbody>
        </table>
        
        <g:form>
            <input type="hidden" name="id" value="${teacher?.id}"/>
            <span class="button"><g:actionSubmit class="edit" action="edit" value="Edytuj" class="icon-button-edit"/></span>
            <span class="button"><g:actionSubmit class="delete" action="delete" onclick="return confirm('Are you sure?');" value="Usuń Konto" class="icon-button-delete"/></span>
        </g:form>  

        <h1>Wykaz Prowadzonych zajęć:</h1><br>
    </div>

</div>

</body>
<td valign="top" class="name">Kierunki Studiow:</td>

<td valign="top" style="text-align:left;" class="value">
    <ul>
        <g:each var="k" in="${teacher.kierunkiStudiow}">
            <li><g:link controller="courseTeacher" action="show" id="${k.id}">${k?.encodeAsHTML()}</g:link></li>
        </g:each>
    </ul>
</td>
</html>
